<?php $this->beginContent('//layouts/front_header'); ?>
<!--导航 start-->
<div class="member_nav mem_bgx w_990 o_a">
	<div class="back mem_bg f_l"><a href="<?php echo Yii::app()->homeUrl;?>" title="">返回商城首页</a></div>
    <div class="nav_r mem_bgx f_r"></div>
    	<?php 
    		$this->widget('zii.widgets.CMenu', array(
				'items'=>Nav::model()->getTopMenu('2',Yii::app()->getController()->id),
				'htmlOptions'=>array('class'=>"main_nav c_f f_l"),
				'itemCssClass'=>'item',
				'activeCssClass'=>'cur item',
    		));
    	?>
</div>
<!--导航 end-->
<div class="hr_10"></div>
<!--正文start-->
<div class="w_990 o_a member_center">
<!--左侧导航start-->
	<div class="col_sub f_l">
    	<div class="sub_list">
        	<div class="list_top mem_bg"></div>
            <div class="list_box">
            	<ul id="curchange">
            	<?php foreach(Nav::model()->getMenu('2',Yii::app()->getController()->id) as $itemMenu ){
		            	$this->beginWidget('zii.widgets.CPortlet', array(
		            		'title'=>'<h3 class="c_666 mem_bgx">'.$itemMenu['title'].'</h3>',
							'tagName'=>'li',
							'htmlOptions'=>array('class'=>'box fs_14'),
		            	));
						if(isset($itemMenu['items'])){
							$this->widget('zii.widgets.CMenu', array(
								'items'=>$itemMenu['items'],
								'itemCssClass'=>'item',
								'activeCssClass'=>'cur item',
							));
						}
						$this->endWidget();
				}?>
				</ul>
                <div class="service c_444">
                    <p class="qq">
                    <?php $services = CmpServices::model()->getServices(1);?>
                    <?php  if(!empty($services)){ foreach($services as $val){
                    	 if($val->zcs_type==1){
						 	 //QQ账号 
							echo CHtml::link('<span class="ico_qq qq_online2">'.$val->zcs_name.'</span>','http://wpa.qq.com/msgrd?V=1&amp;Uin='.$val->zcs_account.'&amp;Site='.Yii::app()->name.'&amp;Menu=yes',array('class'=>'c_06c','target'=>'_blank'));
						 }elseif($val->zcs_type==2){
							 //MSN 
							echo CHtml::link($val->zcs_name,'msnim:chat?contact='.$val->zcs_account,array('class'=>'c_06c','target'=>'_blank'));
						 }elseif($val->zcs_type==3){
							 //淘宝旺旺 
							echo CHtml::link($val->zcs_name,'http://amos1.taobao.com/msg.ww?v=2&uid='.$val->zcs_account.'&s=2',array('class'=>'c_06c','target'=>'_blank'));
						 }
                     }} ?>
                     </p>
                    
                    <h4>服务时间</h4>
                    <p>9：00-18：00(周一至周六）</p>
                    <h4>咨询热线</h4>
                    <p><?php echo F::setting('hottel')?></p>
                </div>
            </div>
        </div>
    </div>
    <!--左侧导航end-->
    <div class="col_main f_r">
    	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
			'separator'=>' > ',
			'htmlOptions'=>array('class'=>'position'),
		)); ?><!-- breadcrumbs -->
		<?php endif?>
		<?php echo $content; ?>
    </div>
</div>
<!--正文end-->
<div class="hr_30"></div>
<!--底部start-->
<div class="footer">
    <?php echo Block::model()->Getpos('index_foot_nav')?>
</div>
<!--底部end-->
<?php $this->endContent(); ?>